package com.study.ssm.annotation02.four;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.io.ClassPathResource;

/**
 * @author zhoujunlin
 * @date 2023年07月27日 10:31
 * @desc
 */
@Configuration
@ComponentScan("com.study.ssm.annotation02.four")
public class FourAppConfig {

    //@Bean
    public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
        propertySourcesPlaceholderConfigurer.setLocation(new ClassPathResource("/annotation02/four.properties"));
        return propertySourcesPlaceholderConfigurer;
    }

}
